package com.gimi.cloud.bbp.client.controller.mall;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;
import com.gimi.cloud.bbp.client.service.mall.MallSuggestService;
import com.gimi.cloud.bbp.common.utils.reqhead.Util;
import com.gimi.cloud.bbp.dto.mall.MallSuggestDTO;

/**
 * 意见反馈服务
 * @author 李林峰
 */
@RestController
@RequestMapping(value = "/mall/suggest")
public class MallSuggestController {
	@Autowired MallSuggestService mallSuggestService;
	
	@RequestMapping(value = "submitMallSuggest")
	public void submitMallSuggest(@RequestBody MallSuggestDTO dto,HttpServletResponse response) {
		Util.sendResponse(JSON.toJSONString(mallSuggestService.submitMallSuggest(dto)), response);
	}
}